package com.lcj.common.entity;

public enum OrderStatusEnum {

    WAIT("等待接单", 1),
    RECEIVED("已接单",2),
    ARRIVED("司机已到达", 3),
    BEGIN_DRIVING("开始行程", 4),
    END_DRIVING("结束行程", 5),
    UNPAID("未付款", 6),
    PAID("已付款", 7),
    FINISH("订单已结束", 8),
    CANCEL_BY_CUSTOMER("顾客撤单", 9),
    CANCEL_BY_DRIVER("顾客撤单", 10),
    CLOSE_BY_ACCIDENT("事故关闭", 11),
    OTHER("其他", 12);

    private final String status;

    private final Integer code;

    private OrderStatusEnum(String status, Integer code) {
        this.status = status;
        this.code = code;
    }

    public Integer getCode() {
        return code;
    }

    public String getStatus() {
        return status;
    }
}
